<form class="layui-form layui-form-pane" action="{:url()}" method="post" id="editForm">
    <div class="layui-form-item">
        <label class="layui-form-label">班级名称</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-name" name="name" lay-verify="required" autocomplete="off"
                   placeholder="请输入班级名称">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">班级封面图</label>
        <div class="layui-input-inline">
            <img src="{$data_info.cover_pic}" />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属分类</label>
        <div class="layui-input-inline">
            <select name="category_id" class="field-category_id" type="select">
                {$category_option}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Token名称</label>
        <div class="layui-input-inline">
            <input type="text" data-disabled class="layui-input field-token_name" name="token_name" autocomplete="off"
                   placeholder="请输入Token名称">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Token数量</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-token_num" name="token_num" autocomplete="off"
                   placeholder="请输入Token数量">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Token合约地址</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-token_contract" name="token_contract" autocomplete="off"
                   placeholder="请输入Token合约地址">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">班级简介</label>
        <div class="layui-input-inline">
            <textarea class="layui-textarea field-summary" name="summary"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创建人昵称</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" value="{$data_info.has_user.nick}" autocomplete="off" readonly  placeholder="请输入用户昵称">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创建人手机</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" value="{$data_info.has_user.mobile}" autocomplete="off" readonly placeholder="请输入手机号码">
        </div>
    </div>
   <!-- <div class="layui-form-item">
        <label class="layui-form-label">会员有效期</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-expire_time" name="expire_time" autocomplete="off"
                   placeholder="参考格式：{:date('Y-m-d', strtotime('+1 years'))}" value="0"/>
        </div>
        <div class="layui-form-mid layui-word-aux">参考格式：{:date('Y-m-d', strtotime('+1 years'))}，默认为0，表示永久有效</div>
    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">审核状态</label>
        <div class="layui-input-inline" style="width:290px;">
            <input type="radio" class="field-audit" name="audit" value="0" title="待审核" checked>
            <input type="radio" class="field-audit" name="audit" value="1" title="通过">
            <input type="radio" class="field-audit" name="audit" value="2" title="拒绝">
        </div>
    </div>
    <!--<div class="layui-form-item">
        <label class="layui-form-label">状&nbsp;&nbsp;&nbsp;&nbsp;态</label>
        <div class="layui-input-inline">
            <input type="radio" class="field-status" name="status" value="1" title="启用" checked>
            <input type="radio" class="field-status" name="status" value="0" title="禁用">
        </div>
    </div>-->
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" name="id" class="field-id"/>
            <input type="hidden" name="user_id" class="field-user_id"/>
            <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit">提交</button>
            <a href="{:url('index')}" class="layui-btn layui-btn-primary ml10"><i class="aicon ai-fanhui"></i>返回</a>
        </div>
    </div>
</form>
{include file="block/layui" /}
<script>
    var formData = {:json_encode($data_info)};
</script>
<script src="__ADMIN_JS__/footer.js"></script>